import { createApp } from 'vue';
import ElementPlus from 'element-plus';
import router from '@/router';
import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import toLine from '@/utils';
import mnUI from './components';
import App from './App.vue';
import './mock';

const app = createApp(App);
app.use(router).use(ElementPlus).use(mnUI);
Object.entries(ElementPlusIconsVue).forEach(([key, component]) => {
  app.component(`el-icon-${toLine(key)}`, component);
});
app.mount('#app');
